package cate.game.pvp.ladder.old;

import cate.common.table.pvp.ladder.LadderRobotRow;
import cate.game.GameBody;
import cate.game.play.part.PlaySide;
import easy.java.practice.errorcode.EcResult;

import java.util.Objects;

public class LadderCodesOld {

    public static void buildPs(GameBody game) {
        for (LadderRobotRow row : game.table.ladder.robot.getList()) {
            EcResult<PlaySide> r = game.fight.side.createPlaySideByCode(row.instance);
            if (r.ok() && Objects.nonNull(r.data)) {
                PlaySide ps = r.data;
                ps.snapshot.activeTime = 0;
            }
        }
    }
}
